class CreateSms < ActiveRecord::Migration
  def self.up
    create_table :sms do |t|
      t.integer :user_id
      t.integer :trying_count, :default => 0
      t.integer :pri, :default => 2
      t.text :content
      t.timestamps :tried_at,
        :sent_at,
        :failed_at
      t.string :exception
      t.string :status, :default => 'waiting'
      t.timestamps
    end
  end

  def self.down
    drop_table :sms
  end
end
